package com.seedwill.common.oxm;

import com.thoughtworks.xstream.converters.collections.MapConverter;
import com.thoughtworks.xstream.mapper.Mapper;

class HibernateMapConverter extends MapConverter {

	HibernateMapConverter(Mapper mapper) {
		super(mapper);
	}

	@SuppressWarnings("unchecked")
	public boolean canConvert(Class type) {
		return super.canConvert(type)
				|| type == org.hibernate.collection.PersistentMap.class
				|| type == org.hibernate.collection.PersistentSortedMap.class;
	}
}